//
//  PackageSKUView.h
//  BaseProject
//
//  Created by 王洋 on 2021/5/10.
//  Copyright © 2021 王洋. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "CommonSkuModel.h"
#import "CommonPackageModel.h"
NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSInteger, PackageSKUViewActionType) {
    PackageSKUViewActionType_none,
    
    PackageSKUViewActionType_close,
    //购物车
    PackageSKUViewActionType_cart,
    //购买
    PackageSKUViewActionType_buy
};

@interface PackageSKUView : UIView

@property (weak, nonatomic) IBOutlet UIImageView *skuImageView;

@property (weak, nonatomic) IBOutlet UILabel *skuPriceLab;

@property (weak, nonatomic) IBOutlet UILabel *skuLinePriceLab;

@property (weak, nonatomic) IBOutlet UILabel *selSKULab;

@property (weak, nonatomic) IBOutlet UITextField *countTF;

@property (weak, nonatomic) IBOutlet UIButton *intentionBtn;

@property (weak, nonatomic) IBOutlet UIButton *addBtn;
@property (weak, nonatomic) IBOutlet UIButton *cutBtn;



@property (weak, nonatomic) IBOutlet UIButton *cartBtn;

@property (weak, nonatomic) IBOutlet UIButton *handleBtn;

@property (nonatomic, assign) PackageSKUViewActionType type;

@property (weak, nonatomic) IBOutlet UICollectionView *collectionview;

@property (weak, nonatomic) IBOutlet UILabel *noticeLab;

@property (weak, nonatomic) IBOutlet UILabel *followCarLab;

@property (weak, nonatomic) IBOutlet UILabel *carTagLab;


@property (nonatomic, strong) CommonPackageModel* model;

@property (nonatomic, copy) void(^PackageSKUViewBlock)(PackageSKUViewActionType type,WeddingCarSpecModel *selModel);

- (void)fillSkuViewWithModel:(CommonPackageModel *)model Type:(PackageSKUViewActionType)type;

@end

NS_ASSUME_NONNULL_END
